package com.qidian.by.free.dto;

import com.qidian.by.pojo.goods.entity.Item;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-05-17 07:46
 **/

public class ItemInfoDTO {
    private Item item;
    private String itemDesc;
    private List<String> itemImages;

    public ItemInfoDTO() {
        itemImages = new ArrayList<>();
    }

    public Item getItem() {
        return item;
    }

    public ItemInfoDTO setItem(Item item) {
        this.item = item;
        return this;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public ItemInfoDTO setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
        return this;
    }

    public List<String> getItemImages() {
        return itemImages;
    }

    public ItemInfoDTO setItemImages(Supplier<List<String>> itemImages) {
        this.itemImages = itemImages.get();
        return this;
    }
}
